<?php
/**
 * Created by JetBrains PhpStorm.
 * User: q
 * Date: 14-8-17
 * Time: 上午11:36
 * To change this template use File | Settings | File Templates.
 */
class photo extends CI_Controller{
    public function index(){
        $openid = $_GET['openid'];
        $this->db->where('openid',$openid);
        $this->db->order_by('date','desc');
        $data['event_list'] = $this->db->get('ke_pic')->result_array();
        $this->load->view('photo/index',$data);
    }
}